
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<div class="bjui-pageContent">
    <form action="${ctx}/sys/sysRoleAction/doSave" class="pageForm" data-toggle="validate">
        <input type="hidden" name="op" id="j_dialog_op" value="${param.op}${op}">
        <c:if test="${!empty role}">
	        <input type="hidden" name="id" id="j_dialog_id" value="${role.id}">
	        <input type="hidden" name="status" id="j_dialog_op" value="${role.status}">
	        <input type="hidden" name="createDate" id="j_dialog_op" value="${role.createDate}">
	        <input type="hidden" name="modifyDate" id="j_dialog_op" value="${role.modifyDate}">
	        <input type="hidden" name="createUser" id="j_dialog_op" value="${role.createUser}">
	        <input type="hidden" name="modifyUser" id="j_dialog_op" value="${role.modifyUser}">
        </c:if>

        <table class="table table-condensed table-hover">
            <tbody>
                <tr>
                    <td colspan="2" align="center" valign="middle"><h4>${title}</h4></td>
                </tr>
                <tr>
                    <td>
                        <label for="name" class="control-label x90">角色：</label>
                        <input class="" id="name" type="text" name="name"  value="${role.name}" data-rule="required;name;remote[${ctx}/sys/sysRoleAction/doNameValidate?op=${op}&original=${role.name}]" />
                    </td>
                    <td>
                        <label for="seq_idx" class="control-label x90">排序：</label>
                        <input class="" id="seq_idx" type="text" name="seqIdx" value="${role.seqIdx}" data-rule="required;" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <label for="description" class="control-label x90">描述：</label>
                        <textarea name="description" id="description" rows="5" cols="58">${role.description}</textarea>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
        <li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
    </ul>
</div>